package JXY02.Day02;


/**
 * 将字符串"123abc456def789ghi"中的英文部分替换为"#char#"
 *
 */
//[a-zA-Z]{1,10}
public class Text02 {
    public static void main(String[] args) {
        String regex = "[a-zA-Z]{1,10}";
        String str = "123abc456def789ghi";

        System.out.println(
                str.replaceAll(regex,"#char#")
        );
    }
}
